package soft;

import java.util.Random;
import java.util.Scanner;

public class M {
	public  static void main(String args[]){
		int n,i=0,choice;
		Random rand = new Random();
		Scanner in=new Scanner(System.in);
		n=Integer.parseInt(args[0]);
		zhengshu a=new zhengshu();
		fenshu b=new fenshu();
		for(;i<n;i++)
		{
			choice=rand.nextInt(2)+1;
			if(choice==1)
			{
				a.main(null);
			}
			else
			{
				b.main(null);
			}
		}
		int cuowu=a.cuowu+b.cuowu;
		double zhengquelv=(n-cuowu)*100/n;
		System.out.println(zhengquelv+"%");
	}

}
